<?php
// +----------------------------------------------------------------------------
// | Tke团队版权所属 [三十年河东三十年河西,莫欺少年穷.!]
// +----------------------------------------------------------------------------
// | Copyright (c) 2014 http://www.itdaodan.com All rights reserved.
// +----------------------------------------------------------------------------
// | Author: nengwan_03@163.com
// +----------------------------------------------------------------------------
/**
 +------------------------------------------------------------------------------
 * 菜单模型
 +------------------------------------------------------------------------------
 * @version   1.0
 * @since 2014-8-27
 +------------------------------------------------------------------------------
 */
namespace Admin\Model;
use Think\Model;

class MenuModel extends Model {

	protected $_validate = array(
			array('title','require','标题必须填写'),
			array('url','require','链接必须填写'),
	);

	/* 自动完成规则 */
	protected $_auto = array(
			array('title', 'htmlspecialchars', self::MODEL_BOTH, 'function'),
			array('status', '1', self::MODEL_INSERT),
	);
}